package o2o.config.jms.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: Jahnke [1029777564@qq.com]
 * Date: 2018-03-10 10:53
 * mongoDB properties
 */
@Component
//@PropertySource("classpath:config.properties")
@ConfigurationProperties(prefix = "user-server.jms")
public class JMSProperties {

    private String url;
    private String user;
    private String notifyTopic;
    private String notifyQueue;
    private String flag;

    public String getUrl() {
        return url;
    }

    public JMSProperties setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getUser() {
        return user;
    }

    public JMSProperties setUser(String user) {
        this.user = user;
        return this;
    }

    public String getNotifyTopic() {
        return notifyTopic;
    }

    public JMSProperties setNotifyTopic(String notifyTopic) {
        this.notifyTopic = notifyTopic;
        return this;
    }

    public String getNotifyQueue() {
        return notifyQueue;
    }

    public JMSProperties setNotifyQueue(String notifyQueue) {
        this.notifyQueue = notifyQueue;
        return this;
    }

    public String getFlag() {
        return flag;
    }

    public JMSProperties setFlag(String flag) {
        this.flag = flag;
        return this;
    }
}
